<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="renderer" content="webkit">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->

	<title>{$__settings[site_name]}{C 'title_sperator' '-'}{$__settings[title]}</title>
	<link rel="icon" href="/res/styles/images/favicon.ico">
	<meta name="keyword" content="{if $keywords}{$keywords}-{/if}{$__settings[keywords]}" >
	<meta name="description" content="{if $description}{$description}-{/if}{$__settings[description]}" >

	<meta name="description" content="{$appConfigs[member_title]}">
	<title>{$title}{if $moduletitle}{C 'title_sperator' '-'}{$moduletitle}{/if}</title>
	<meta name="keyword" value="{$keyword}" >
	<meta name="description" value="{$description}" >
	{run $pageName = 'webIndex'}
	{include member.inc.csslink}
</head>
<body>
<div class="ad_index {$_COOKIE['ad_closed']==1 ? 'closed':''}"  id="ad_vert">
	<div class="ad_vert" style="background-image:url('{$Ad_Top.content}')" >
		<a href="{$Ad_Top.link}" target="_blank" class="ad_index_img"  data-url="'{$Ad_Top.content}'"></a>
		<div class="max-w">
			<a class="close_btn"  href="javascript:;"></a>
		</div>

	</div>
{include member.inc.header_web}
</div>
<main>
	<section class="left slidesBox" id="focusSlide">
		<ul class="wrap" style="background:url(http://mpe.dasu123.inet/res/upload/mpe/b21a58592ccc047391b0b0da/images/2017/04/1493191811-872547.jpg)">
			{loop $adslides $slide}
			<li class="item">
				<a title="{$slide.title}" href="{if $slide[link]}{$slide.link}{else}javascript:void(0){/if}"  {if $slide[target]==1}target="_blank"{/if}><img src="{$slide.content}" /></a>
			</li>
			{/loop}
			<!--<li><a><img src="http://mpe.dasu123.inet/res/upload/mpe/b21a58592ccc047391b0b0da/images/2017/04/1493191811-872547.jpg"></a></li>-->
		</ul>
		<div class="con {if $username}none{/if}">
			<!--<div class="arrow fl">
				<a href="javascript:;" class="left"><i></i></a>
				<a href="javascript:;" class="right"><i></i></a>
			</div>-->
			<section class="panel_form fr {$verifyCodeEnable}">
					<div class="header"><h1>你好,请登录</h1></div>
					<form class="form" method="POST" action="{url /member/login/index}">
						<input type="hidden" name="dir" value="{$dir}">
						<ul class="errorWrap">
							<li><label class="error">{$wrong}</label></li>
						</ul>
						<div class="row">
							<i class="user"></i><input type="text" name="username"  placeholder="请输入手机号" class="form-control"  id="mobile"/>
						</div>
						<div class="row">
							<i class="pwd"></i><input type="password" name="pwd" placeholder="请输入6-20位的密码" class="form-control"   autocomplete="new-password"/>
						</div>


						<div class="row vcodeWrap none">

							<i class="vcode"></i><input type="text" name="vcode" placeholder="请输入验证码" class="form-control" autocomplete="false"/>
							<!-- <a href="javascript:;" class="getCode_btn">获取验证码</a> -->

							<a class="getCode_btn" style="padding:0px;margin:0px;"><img onclick="$(this).attr('src','{url /utils/verifyCode/index}?s=1&r='+Math.random())" src="{url /utils/verifyCode/index}?s=1" ></a>
						</div>
						<div class="tip checkbox-wrap">
							<input type="checkbox"  name="remember" id="remember"/>
							<label for="remember" class="check_box">记住我</label>
							<a class="fr link2" href="/member/login/forget">忘记密码 ?</a>
						</div>
						<a href="javascript:;" class="sub_btn">登录</a>
						<div class="to_login clearfix">
							<p class="fr c-info"> 没有账号? <a href="/member/reg/index" class="link2">立即注册</a></p>
						</div>
					</form>
				</section>
		</div>
	</section>
	<aside class="titleBar"><div class="max-w">
		<img src="/res/mpe/img/blank.gif" alt="公告"/>
		<ul class="list">
			<li><a href="{url /information/notice/detail}?id={$notice.id}">{expr $notice['title']}</a><time>{expr date("m-d",strtotime($notice[addtime]))}</time></li>
		</ul>
		<!--<a href="{url /information/notice/index}" class="more_link2">更多</a>-->
		<!--<a ><img src="/res/mpe/scss/icons/new/more41.png" class="fr"></a>-->
		<!--<a href="{url /information/notice/index}" class="more_new fr"></a>-->
		<a href="{url /information/notice/index}" class="more_txt fr"></a>

	</div></aside>
	<div class="max-w">
		<!--供应的塑料-->
		{loop $proLists  $parent_key  $item}
		<section class="panel2 pro_list">
			<div class="header">
				<strong>{$item[type_name]}</strong>
				<ul>
					{loop $item[proName] $li_key $product_name}
					<li data-id="{$li_key}" data-type="{$item[type_name]}" data-pro="{$product_name.product_name}"
						class="{if $li_key==0}loaded active{/if}"><a href="javascript:;">{$product_name.product_name}</a></li>
					{/loop}
					<li class="more"><a href="/trading/product/index" >更多 ></a></li>
					<!--<li class="more"><a href="/trading/product/index" >
					<img src="/res/mpe/scss/icons/new/more41.png"></a></li>
					<a href="{url /information/notice/index}" class="more_new fr"></a>-->
				</ul>
			</div>
			<div class="body">
				<aside class="bg{expr $parent_key%3}">
					<img class="title" src="/res/mpe/img/web/ad_title.png"/>
					{if $item[brand]}
					<a href="{$item[brand][0][url]}" target="_blank" class="thumb">
						<img  width="180" height="180" src="{$item[brand][0][logo]}" title="{$item[brand][0][title]}"/>
					</a>
					<div class="btns">
						{loop $item[brand] $key $br}
						{if $key>0}
						<a href="{$br.url}" title="{$br.title}" target="_blank">{$br.title}</a>
						{/if}
						{/loop}
					</div>
					{else}
					<span  class="thumb" ><img width="180" height="180" src="/res/mpe/img/web/temp/ad_tumb.png" /></span>
					{/if}
				</aside>
				<div class="wrap">
					<ul>
						<li data-id="0">
							<table>
								<thead><tr>
									<td width="70">品名</td>
									<td width="100">厂家</td>
									<td width="80">牌号</td>
									<td width="100">价格(元/{$pro_unit})</td>
									<td width="90">数量({$pro_unit})</td>
									<td width="70">交收地</td>
									<td width="100">交收方式</td>
									<td width="120">最小交易量({$pro_unit})</td>
									<td width="130">操作</td>
								</tr></thead>
								<tbody>
								{loop $item[proList] $pro}
								<tr data-id="{$pro[id]}">
									<td>{$pro.product_name}</td>
									<td class="break-word">{$pro.factory_name}</td>
									<td>{$pro.brand_name}</td>
									<td class="c-primary fw_bold">{$pro.sales_price}</td>
									<td>{$pro.quantity}</td>
									<td>{$pro.address}</td>
									<td>{if $pro[delivery_way]==0}卖家配送{else}买家自提{/if}</td>
									<td>{$pro.min_volume}</td>
									<td>
										<a href="javascript:;" class="car" data-act="add_car"><i></i></a>
										<a href="javascript:;" class="buy" data-act="buy" >购买</a>
									</td>
								</tr>
								{/loop}
								</tbody>
							</table>
						</li>
					</ul>
				</div>
			</div>
		</section>
		{/loop}
		<!--供应的塑料-->

		<!--优质供应商-->
		<section class="panel2">
			<div class="header"><strong>优质供应商</strong></div>
			<div class="body">
				<ul class="supporter_list">
					{loop $Suppliers $sup}
					<li><a href="{$sup.url}" title="{$sup.title}"><img width="146" height="60" src="{$sup.logo}" alt="{$sup.title}"></a></li>
					{/loop}
				</ul>
			</div>
		</section>
		<!--资讯-->
		<section class="panel_info max-w">
			<div class="left">
				<section class="slidesBox" id="focusSlide2">
					<ul class="wrap">
						{loop $adLeft $adtemp}
						<li class="item">
							<a href="{if $adtemp[link]}{$adtemp[link]}{else}javascript:void(0){/if}" title="{$adtemp.tittle}">
								<img title="{$adtemp.tittle}" src="{$adtemp.content}" />
							</a>
						</li>
						{/loop}
					</ul>
				</section>
			</div>
			<div class="right">
				{loop $informations $info}
				<article>
					{if $info[info][0][image_url]}
					<a href="{$info_detail_url}?id={$info[info][0][id]}"><img class="thumb" src="{$info[info][0][image_url]}"/></a>
					{else}
					<a href="javascript:void(0)"><img  class="thumb" src="/res/mpe/img/web/temp/little.png"/></a>
					{/if}
					<div class="header"><strong>{$info.name}</strong> <a href="{$info_more_url}?cate={$info.id}" class="more_link2"></a></div>
					<ul class="list">
						{loop $info[info] $value}
						<li><a href="{$info_detail_url}?id={$value.id}">{$value.title}</a><time>{expr date("m-d",strtotime($value[addtime]))}</time></li>
						{/loop}
					</ul>
				</article>
				{/loop}
			</div>
		</section>
		<!--资讯--->
		<div class="ad_bar">
			{if $Ad_bottom}
			<a href="{$Ad_bottom.link}" target="{if $Ad_bottom[target]==1}_blank{/if}" title="{$Ad_bottom.title}"><img src="{$Ad_bottom.content}" title="{$Ad_bottom.title}"/></a>
			{else}
			<img src="/res/mpe/img/web/temp/ad_bar.png" />
			{/if}
		</div>

		<section class="panel2">
			<div class="header"><strong>合作银行</strong> <span>超过{expr count($Banks)}家合作银行</span></div>
			<div class="body">
				<ul class="bank_list">
					{loop $Banks $bank}
					<li><a href="{$bank.url}" title="{$bank.title}"><img width="127" height="60" src="{$bank.logo}" title="{$bank.title}"></a></li>
					{/loop}
				</ul>
			</div>
		</section>
	</div>
</main>
{include member.inc.footer}
{include member.inc.script_web}
<!--直接购买弹窗模板-->
{include trading.inc.temp_buy}
<!--tab table 请求模板-->
<script type="text/html" id="tabTemp">
	<li data-id="{%liId%}">
		<table>
			<thead><tr>
				<td width="70">品名</td>
				<td width="80">牌号</td>
				<td width="100">厂家</td>
				<td width="100">价格(元/{$pro_unit})</td>
				<td width="90">数量({$pro_unit})</td>
				<td width="70">交收地</td>
				<td width="100">交收方式</td>
				<td width="120">最小交易量({$pro_unit})</td>
				<td width="130">操作</td>
			</tr></thead>
			<tbody>
			{%each data as pro%}
			<tr data-id="{%pro.id%}">
				<td>{%pro.product_name%}</td>
				<td>{%pro.brand_name%}</td>
				<td class="break-word">{%pro.factory_name%}</td>
				<td class="c-primary">￥{%pro.sales_price%}</td>
				<td>{%pro.quantity%}</td>
				<td>{%pro.address%}</td>
				<td>{%if pro.delivery_way=='0'%}卖家配送{%else%}买家自提{%/if%}</td>
				<td>{%pro.min_volume%}</td>
				<td>
					<a href="javascript:;" class="car" data-act="add_car"><i></i></a>
					<a href="javascript:;" class="buy" data-act="buy" >购买</a>
				</td>
			</tr>
			{%/each%}
			</tbody>
		</table>
	</li>
</script>
<script>
	seajs.use(['index','login'],function(index,login){
		index.loaded=false;//判断用户是否已经登录
		index.username = "{$username}";
		index.indexInit();

		login.vcodeEnable="{$verifyCodeEnable}";//是否显示验证码{$verifyCodeEnable}
		//login.login();
		login.login();
		/*console.log(login.login());*/
	});
</script>
{include member.inc.foot_hook}
</body>
</html>

